#include "light_temphum_widget.h"
#include "ui_light_temphum_widget.h"
#include "fsmpTempHum.h"
#include  <QTimer>

Light_TempHum_Widget::Light_TempHum_Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Light_TempHum_Widget)
{
    ui->setupUi(this);

    light = new fsmpLight;

    th = new fsmpTempHum;

    localService();
    onlineService();
}

Light_TempHum_Widget::~Light_TempHum_Widget()
{
    timer->stop();
    delete ui;
}



void Light_TempHum_Widget::on_backButton_clicked()
{
    timer->stop();
   this->close();
}

